//
//  AppController.h
//  HypERLtrace
//
//  Created by Vladimir Sarpe on 29/07/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <GraphView.h>
#import <MainDataSource.h>
#import <EventTableView.h>
#import <ProcessesDataSource.h>
#import <ArcView.h>
#import <ArcGraphView.h>

@interface AppController : NSObject {
	NSMutableArray* graphEvents;
	NSMutableArray* events;
	NSMutableDictionary* actorHash;
	NSMutableArray* procTree;
	NSString* lastevent;
	id globalSender;
	int selected;
	
	IBOutlet NSForm* advSearchForm;
	IBOutlet NSPanel* advSearchPanel;
	IBOutlet ProcessesDataSource* procDataSource;
	IBOutlet MainDataSource* dataSource;
	IBOutlet EventTableView* tableView;
	IBOutlet NSOutlineView* outlineView;
	IBOutlet NSSearchField* searchField;
	IBOutlet GraphView* graphView;
	IBOutlet ArcGraphView* arcGraphView;
	IBOutlet NSProgressIndicator* progress;
	IBOutlet NSWindow* window;
	IBOutlet NSTabView* tabView;
	IBOutlet ArcView* arcView;
	IBOutlet NSWindow* arcViewWindow;
	
	IBOutlet NSButton* hierB;
	IBOutlet NSButton* seqB;
}

- (IBAction)open:(id)sender;
- (IBAction)search:(id)sender;
- (void)performSearch:(NSString*) searchString;
- (IBAction)showAdvSearch:sender;
- (IBAction)advSearch:(id)sender;
- (IBAction)clearSearchForm:(id)sender;
- (IBAction)tab:(id)sender;
- (IBAction)eventMenu:(id)sender;
- (IBAction)processMenu:(id)sender;
- (IBAction)arcView:(id)sender;
- (IBAction)exitFSMode:(id)sender;
- (IBAction)windowMode:(id)sender;

- (IBAction)seqView:(id)sender;
- (IBAction)hierView:(id)sender;


@end
